<!-- /ezadm/template/board/ezbbs_group.htm :: 2010-03-04 :: ezdong & hamhaja -->
<script type="text/javascript" src="/js/list_manager.js"></script>
<script type="text/javascript">
//<![CDATA[
$(function() {
	LM = new ListManager('src_group_id', 'dst_group_id');
});

// 입력값 체크
function check_form(f)
{
	var groups = '';
	for (var i=0; i<f.elements['dst_group'].length; i++)
	{
		if (i) groups += ',';
		groups += f.elements['dst_group'][i].value;
	}
	f.elements['ebgpcf_groups'].value = groups;
	return true;
}
//]]>
</script>

<ul>
	<li class="blue">게시판그룹 설정은 다수의 게시판을 모아 하나의 목록으로 그룹화 할때 이용됩니다.</li>
</ul>

<form name="update_form" method="post" action="<?=$_SERVER['PHP_SELF']?>" target="form_receiver" onsubmit="return check_form(this);">
<input type="hidden" name="g_job" value="<?=$g_job?>" />
<input type="hidden" name="g_subjob" value="update" />
<input type="hidden" name="ebgpcf_ebcfid" value="<?=$config_record['ebcf_id']?>" />
<input type="hidden" name="ebgpcf_groups" value="" />

	<table class="form1" style="width:500px;" align="center">
	<caption>게시판그룹 설정</caption>
	<col width="42%" /><col width="16%" /><col width="42%" />
	<tr>
		<th>전체 게시판그룹</th>
		<td></td>
		<th>할당된 관리자그룹</th>
	</tr>
	<tr>
		<td>
			<select name="src_group" id="src_group_id" class="full" size="15">
				<?php foreach ($groups as $v) { ?>
				<?php if (!array_key_exists($v['ebgp_id'], $board_groups)) { ?><option value="<?=$v['ebgp_id']?>"><?=$v['ebgp_pname']?></option><?php } ?>
				<?php } ?>
			</select>
		</td>
		<td class="center">
			<a href="#" onclick="LM.move(LM.SOURCE); return false;"><img src="<?=$App->_url_admin?>/icon/left_to_right.gif" border="0" alt="왼쪽으로 이동" /></a>
			<br /><br />
			<a href="#" onclick="LM.move(LM.TARGET); return false;"><img src="<?=$App->_url_admin?>/icon/right_to_left.gif" border="0" alt="오른쪽으로 이동" /></a>
		</td>
		<td>
			<select name="dst_group" id="dst_group_id" class="full" size="15">
				<?php foreach ($board_groups as $v) {?>
				<option value="<?=$v['ebgpcf_ebgpid']?>"><?=$groups[$v['ebgpcf_ebgpid']]['ebgp_pname']?></option>
				<?php } ?>
			</select>
		</td>
	</tr>
	</table>

	<div class="util">
		<input type="submit" class="button" value="수정" />
		<input type="button" class="button" value="닫기" onclick="self.close();" />
	</div>


</form>